//
//  CTPSpot.m
//  citipad
//
//  Created by Chih Yuan Liu on 3/16/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import "CTPSpot.h"
#import "JSON.h"


@implementation CTPSpot

@synthesize name;
@synthesize imageKey;
@synthesize cityName;

-(id) initWithJSON:(NSString *) json{
	if (self = [super init])
    {
		NSDictionary *obj = [json JSONValue];
		name = (NSString*)[obj objectForKey:@"name"];
		imageKey = (NSString*)[obj objectForKey:@"imageKey"];
		
    }
    return self;
}

@end
